<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04-history.pushstate的使用</title>
</head>
<body>
    <script>
        const state = {page_id:1,user_id:5};
        const title ="hello";
        const url = "hellow-world.html";
        /**
         * history.pushState() 
         * 方法向当前浏览器会话的历史堆栈中添加一个状态（state）。
        */
        history.pushState(state,title,url);
    </script>
</body>
</html>